package com.syyo.admin.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Auther: wangzhong
 * @Date: 2019/9/30 17:15
 * @Description: 状态枚举
 */
@AllArgsConstructor
@Getter
public enum ResultEnum {

    OK(20000, "成功"),
    FAIL(9999, "失败"),
    E_90000(90000, "参数不能为空"),
    E_90001(90001, "没有认证，请先认证"),
    E_90003(90003, "您没有该功能的权限，请联系管理员！"),
    E_90004(90004, "文件导入失败，安全码过期！"),

    E_80001(80001, "用户添加失败"),
    E_80002(80002, "用户删除失败"),
    E_80003(80003, "用户修改失败"),
    E_80004(80004, "用户已存在"),
    E_80005(80005, "用户不存在"),
    E_80006(80006, "用户账号或密码错误"),
    E_80007(80007, "用户被禁用"),
    E_80008(80008, "旧密码错误"),
    E_80009(80009, "新密码不能与旧密码相同"),

    E_80011(80011, "角色添加失败"),
    E_80012(80012, "角色删除失败"),
    E_80013(80013, "角色修改失败"),
    E_80014(80014, "角色已存在"),
    E_80015(80015, "角色id不存在"),
    E_80016(80016, "角色授权失败"),

    MENU_ADD_FAIL(80012, "菜单添加失败"),
    MENU_EXIST(80013, "菜单已存在"),
    MENU_DEL_FAIL(80014, "菜单删除失败"),
    MENU_UPDATE_FAIL(80015, "菜单修改失败"),
    MENU_NOT_EXIST(80016, "菜单id不存在"),
    MENU_PID_NOT_SELF(80017, "父级id不能是自己"),


    PLACEHOLDER(null, null);// 占位符,方便快速编写代码（无其他业务作用）

    private Integer code;
    private String message;


}
